import { server } from '@library/utils';

export const historyTask = async (data: any) => {
  try {
    return await server('/bk/mid/workflow/getApprovalHistoryAndForecastTask', { ...data, pages: { pageSize: 200, page: 1 } });
  } catch (err) {
    return { rows: [] };
  }
};
